import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../../../res/decoration_style.dart';
import '../../../../res/style.dart';
import '../res/colors.dart';

class RedBtn extends StatelessWidget {
  ///点击事件
  final GestureTapCallback? onTap;

  final double radius;

  final String title;

  const RedBtn({Key? key, this.title = '', this.onTap,  this.radius = 15}) :
        super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
        decoration: BoxDecoration(
            border: Border.all(color: ColorStyle.color_backgroud4, width: 1),
            borderRadius: BorderRadius.circular((radius))),
        width: 100.w,
        height: 30.h,
        child: Center(
          child: Text(
            title,
            style: Styles.style_red_14,
          ),
        ),
      ),
    );
  }
}
